#ifndef INHERITANCE_ENGINE_H
#define INHERITANCE_ENGINE_H

#include <iostream>
#include <string>

class Engine
{
protected:
    const std::string _model;
    const int _year;
    static int _size;
    static int _maxsize;

public:
    static Engine **arr;

    Engine(const std::string &, const int &);

    virtual ~Engine();

    static void print();

    void Add();

    virtual void Show() const = 0;
};

#endif // INHERITANCE_ENGINE_H
